﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>修改密码</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/static/admin/style/adminStyle.css" rel="stylesheet" type="text/css" />

</head>
<body>

<div class="wrap">
  <div class="page-title">
    <span class="modular fl"><i class="user"></i><em>修改密码</em></span>
  </div>
<form class="pass_info">

<table class="noborder">
   <tr>
    <td width="15%" style="text-align:right;">本次创建vip充值码的数量：</td>
    <td><input type="text" class="textBox length-middle" id="num"/></td>
   </tr>
   <tr>
    <td style="text-align:right;">创建vip充值码有效时间：</td>
    <td><input type="text" class="textBox length-middle" id="time"/></td>
   </tr>
   <tr>
    <td style="text-align:right;"></td>
    <td><input type="submit" class="tdBtn" id="save" value="创建"/></td>
   </tr>
  </table>
    </form>

 </div>
<div>
 <script src="/static/index/js/jquery-1.12.4.min.js"></script>
 <script>
  $("#save").click(function(){
    console.log("asfdasfd");
    var time = $.trim($('#time').val());
	var num = $.trim($('#num').val());
    $.ajax({
        url:"/production",
        type:"post",
        data:{"time":time,"num":num},
        success:function(data){
            if(data.code==0){
                location.href = "/admin_list"
            }else{
                alert(data.msg)
            }
        },
    })

});
 </script>
</div>
</body>
</html>